package com.ruoyi.core.domain.store;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 门店营业时间配置对象 store_business_time
 * 
 * @author Sxz
 * @date 2025-08-07
 */
public class StoreBusinessTime extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 门店ID（关联 store_detail 或 store 表） */
    @Excel(name = "门店ID", readConverterExp = "关=联,s=tore_detail,或=,s=tore,表=")
    private Long storeId;

    /** 星期几（1-周一，7-周日） */
    @Excel(name = "星期几", readConverterExp = "1=-周一，7-周日")
    private Long dayOfWeek;

    /** 营业开始时间（如 08:00） */
    @Excel(name = "营业开始时间", readConverterExp = "如=,0=8:00")
    private Date openTime;

    /** 营业结束时间（如 22:00） */
    @Excel(name = "营业结束时间", readConverterExp = "如=,2=2:00")
    private Date closeTime;

    /** 逻辑删除标志（0-未删除，1-已删除） */
    @TableLogic
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setStoreId(Long storeId) 
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }

    public void setDayOfWeek(Long dayOfWeek) 
    {
        this.dayOfWeek = dayOfWeek;
    }

    public Long getDayOfWeek() 
    {
        return dayOfWeek;
    }

    public void setOpenTime(Date openTime) 
    {
        this.openTime = openTime;
    }

    public Date getOpenTime() 
    {
        return openTime;
    }

    public void setCloseTime(Date closeTime) 
    {
        this.closeTime = closeTime;
    }

    public Date getCloseTime() 
    {
        return closeTime;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("storeId", getStoreId())
            .append("dayOfWeek", getDayOfWeek())
            .append("openTime", getOpenTime())
            .append("closeTime", getCloseTime())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .toString();
    }
}
